package com.wjw;

import com.wjw.pojo.Book;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication
//Book类上没有注解@Component，所以在此使用@EnableConfigurationProperties注解
@EnableConfigurationProperties(Book.class)
public class MyApplication {
    public static void main(String[] args) {
        SpringApplication.run(MyApplication.class);
    }
}
